﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CourseEdit.aspx.cs" Inherits="Admin_Course_CourseEdit" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>修改课程</title>
    <link href="../../css/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link href="../../css/admin.css" rel="stylesheet" />
    <script src="../../js/jquery-1.7.2.min.js"></script>
    <script src="../../css/assets/js/bootstrap.min.js"></script>
    <script src="../../js/laydate/laydate.js"></script>

</head>
<body>
    <form id="form1" runat="server">



        <div class="row">
            <asp:HiddenField ID="txtCourseID" runat="server" />
            <%-- 隐藏控件--%>

            <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                <span class="txtWarn">*</span>  课程名称：                
                    <br />
                <asp:TextBox runat="server" ID="txtCourseName" CssClass="txtSize"></asp:TextBox>
            </div>

            <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                <span class="txtWarn">*</span>  开始时间(格式：2018-01-01 20:30:00)：<br />
                <asp:TextBox runat="server" ID="txtStartTime" CssClass="txtSize"></asp:TextBox>
            </div>

            <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
              <span class="txtWarn">*</span> 课程价格：<br />
                <asp:TextBox runat="server" ID="txtPrice" CssClass="txtSize"></asp:TextBox>
            </div>


            <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                课程类型：                                                                                                  
                    <br />
     <asp:DropDownList runat="server" CssClass="txtSize" ID="ddlCourseType" OnSelectedIndexChanged="ddlCourseType_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>

            </div>

            <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                课程分组：                                                                                                  
                    <br />
            <asp:DropDownList runat="server" CssClass="txtSize" ID="ddlTeam"></asp:DropDownList>
            </div>

            <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                主讲老师：                
                    <br />
                <asp:DropDownList runat="server" CssClass="txtSize" ID="ddlTeacherID"></asp:DropDownList>
            </div>

            <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                是否收费：      
                    <br />
                <asp:DropDownList ID="ddlIsCharge" runat="server" CssClass="txtSize">
                    <asp:ListItem Text="收费" Value="1"></asp:ListItem>
                    <asp:ListItem Text="免费" Value="2"></asp:ListItem>
                </asp:DropDownList>
            </div>

            <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                直播录播：      
                    <br />
                <asp:DropDownList ID="ddlIsLive" runat="server" CssClass="txtSize">
                    <asp:ListItem Text="直播" Value="1"></asp:ListItem>
                    <asp:ListItem Text="录播" Value="2"></asp:ListItem>
                </asp:DropDownList>
            </div>

             <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                <span class="txtWarn"></span> 视频或录音<br />
                <asp:TextBox runat="server" ID="txtVideoLink" CssClass="txtSize"></asp:TextBox>
            </div>



            <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
              <span class="txtWarn">*</span>排序：[按数字从大到小排列]：<br />
                <asp:TextBox runat="server" ID="txtSort" CssClass="txtSize">0</asp:TextBox>
            </div>


             <div class="col-lg-4 col-md-4 col-sm-6  ">
                课程说明：<br />
                <asp:TextBox TextMode="MultiLine" runat="server" ID="txtCourseExplain" CssClass="txtSize" Style="height: 120px;line-height:20px;"></asp:TextBox>
            </div>


             <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                <br /> 是否邀请助力：         <%-- -1 是；1 否--%>
              <asp:RadioButton runat="server" ID="is1" GroupName="IsInviteHelp" Checked="true" /><label class="lblFor" for="is1">是</label>&nbsp;
              <asp:RadioButton runat="server" ID="is2" GroupName="IsInviteHelp" /><label class="lblFor" for="is2">否</label>
           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

           </div>
            <span style="display:none">
               状态：  <%-- -1 禁用；1 正常--%>
              <asp:RadioButton runat="server" ID="rb1" GroupName="rbStatus" Checked="true" /><label class="lblFor" for="rb1">启用</label>&nbsp;
              <asp:RadioButton runat="server" ID="rb2" GroupName="rbStatus" /><label class="lblFor" for="rb2">禁用</label>  
             </span>
        </div>

       
        <div style="margin-top: 20px; vertical-align: top; ">

           <div class="txtWarn"> 课程列表图片：（图片比例5:4）</div>
              <br />
            <asp:FileUpload ID="txtSelectFileOne" runat="server" Style="display: inline-block" />
            <asp:Button runat="server" ID="btnUpLoadone" Text="上传图片" Onclick="btnUpLoad_Click" />&nbsp;&nbsp;&nbsp;
            <asp:Label runat="server" ID="lblUploadInfoone" CssClass="txtWarn"></asp:Label>

            <asp:Image runat="server" ID="imgSignatureone" Height="80" />
            <asp:Label runat="server" ID="lblFileNameImg" Visible="false"></asp:Label>
        
           </div>

        <div style="margin-top: 20px; vertical-align: top; " >
            <div class="txtWarn"> 课程详情图片：（图片比例18:11）</div>
            <br />
            <asp:FileUpload ID="txtSelectFileTwo" runat="server" Style="display: inline-block" />
            <asp:Button runat="server" ID="btnUpLoadtwo" Text="上传图片" Onclick="btnUpLoadone_Click"/>&nbsp;&nbsp;&nbsp;
            <asp:Label runat="server" ID="lblUploadInfotwo" CssClass="txtWarn"></asp:Label>

            <asp:Image runat="server" ID="imgSignaturetwo" Height="80" />
            <asp:Label runat="server" ID="lblFileNameInfoImg" Visible="false"></asp:Label>
        </div>
       

      <br /> <br />

        <div style="clear:both;">
            <CKEditor:CKEditorControl ID="txtCourseIntroduce" BasePath="~/Js/Ckeditor" runat="server" Height="405"></CKEditor:CKEditorControl>
        </div>


        <div>
            <br />

            <asp:Button runat="server" ID="btnOK" Text="确定" CssClass="btn btn-primary btnSize" OnClick="btnOK_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button runat="server" ID="btnBack" Text="返回" CssClass="btn btn-primary btnSize" OnClick="btnBack_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label runat="server" CssClass="txtWarn" ID="lblWarn"></asp:Label>
        </div>
    </form>
</body>
</html>
